export interface getCodeModel {
  captcha: {
    backgroundImage: string
    sliderImage: string
  }
  id: string
}

export interface loginModel {
  userName: string
  phone: string
  oauth: {
    token: string
    refreshToken: string
    expiresIn: number
  }
}
export interface userInfoModel {
  id: number | null
  userId: number | null
  userName: string
  realName: string
  address?: string
  phone?: string
  postCode?: string
  mobile?: string
  email?: string
  sex?: number
  userType: 1 | 2 | 3
  enabled: boolean
  accountNonLocked: boolean
  remark?: string
  roleName?: string
  roleCode?: string
  // createTime: string
  // updateTime: string
  // expireTime?: string
  // lastLoginTime?: string
  idCard?: string
  embassyId?: string
  orgId?: number
  orgName?: string
}

export interface Login {
  // id: string
  // captchaTrack: {
  //   bgImageWidth: string
  //   bgImageHeight: string
  //   sliderImageWidth: string
  //   sliderImageHeight: string
  //   startSlidingTime: string
  //   endSlidingTime: string
  //   trackList: any[]
  //   entSlidingTime: string
  // }
  // form: {
  userName: string
  password: string
  // }
}

export interface RefreshToken {
  refreshToken: string
}
